import sys
sys.path.append("../")

from services.BaseService import *

class AutoSelectService(BaseService):
    def __init__(self):
        super(AutoSelectService, self).__init__()
        self.db = CommonDb("auto_select","stock")

    def insertDB(self,info):
        self.db.add(info)

    def gets(self):
        return self.db.selectAll("logday in (select max(logday) from auto_select)","*",True)